package com.goktech.olala.core.service;

import com.goktech.olala.core.req.ReqShopCart;
import com.goktech.olala.core.resp.RespShopCartVo;

import java.util.List;

/**
 * @author wyn
 */
public interface IOrderShopCartService {
    /**
     * 查询购物车列表
     * @param reqShopCart
     * @return
     * @throws Exception
     */
    List<RespShopCartVo> queryShopCartList(ReqShopCart reqShopCart) throws Exception;

    /**
     * 根据id查询购物车
     * @param shopCartId
     * @return
     * @throws Exception
     */
    RespShopCartVo queryShopCartById(String shopCartId) throws Exception;

    /**
     * 删除购物车
     * @param reqShopCart
     * @return
     * @throws Exception
     */
    int deleteByParam(ReqShopCart reqShopCart) throws Exception;

    /**
     * 保存购物车
     * @param record
     * @return
     * @throws Exception
     */
    int saveShopCart(ReqShopCart record) throws Exception;

}
